﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;
using TMS_Master.TmsEnum;

namespace TMS_Master.Dto
{
    /// <summary>
    /// 物资领用表
    /// </summary>
    public class Goods_ReceivingDto : AuditedEntityDto<Guid>
    {
        /// <summary>
        /// 标题
        /// </summary>
        [StringLength(20)]
        [Required]
        public string GoodsTitle { get; set; }

        /// <summary>
        /// 用途描述
        /// </summary>
        [StringLength(200)]
        [Required]
        public string UseInfo { get; set; }

        /// <summary>
        /// 领用人
        /// </summary>
        [StringLength(20)]
        [Required]
        public string RcName { get; set; }

        /// <summary>
        /// 领用日期
        /// </summary>
        [Required]
        public DateTime RcTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(200)]
        [Required]
        public string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; }


        /// <summary>
        /// 审批状态
        /// </summary>
        public Status IsState { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        [StringLength(20)]
        public string Approver { get; set; }

        /// <summary>
        /// 领用物品
        /// </summary>
        [Required]
        public int GoodsItem { get; set; }

        /// <summary>
        /// 删除状态
        /// </summary>
        public int IsDeleted { get; set; }
    }
}
